package com.qqtech.qquan.user.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.core.frame.service.BaseServiceImpl;
import com.qqtech.qquan.user.cache.UserSysParamCache;
import com.qqtech.qquan.user.dao.UserSysParamDao;
import com.qqtech.qquan.user.model.UserSysParam;

@Service
public class UserSysParamServiceImpl extends BaseServiceImpl<UserSysParam>implements UserSysParamService {
	public static final Logger log = LoggerFactory.getLogger(UserSysParamServiceImpl.class);

	@Resource
	private UserSysParamDao userSysParamDao;
	
	@Resource
	private UserSysParamCache userSysParamCache;

	@Override
	protected BaseDao<UserSysParam> getBaseDao() {
		return userSysParamDao;
	}

	@Override
	public UserSysParam getByKey(java.lang.String key) {
		return userSysParamDao.getByKey(key);
	}

	@Override
	public void clearAll() {
		userSysParamCache.clearAll();
		
	}
}